计算机与现代化 ›› 2012, Vol. 198 ›› Issue (2): 194-197.doi: 10.3969/j.issn.1006-2475.2012.02.052

• 应用与开发 • 上一篇    下一篇

基于MDA的SSH代码生成

邢海华,石冰,胡元   

  1. 山东大学计算机科学与技术学院,山东济南250101
  • 收稿日期:2011-07-23 修回日期:1900-01-01 出版日期:2012-02-24 发布日期:2012-02-24

SSH Codes Generating Based on MDA

XING Hai-hua, SHI Bing, HU Yuan   

  1. School of Computer Science and Technology, Shandong University, Ji’nan 250101, China
  • Received:2011-07-23 Revised:1900-01-01 Online:2012-02-24 Published:2012-02-24

摘要: 近几年,随着软件开发技术的发展,软件开发的步骤越来越规范化,开发的规范化固然便于软件的管理和日后的维护,但是这同时也带来一个不可避免的问题:开发人员编写重复代码工作量的骤然提升,一个很好的实例是基于SSH(Struts2,Spring,Hibernate)框架的开发。本文采用MDA(Model Driven Architecture)技术结合SSH开发框架提出一种新的代码生成方案sMDA,sMDA很好地解决重复代码编写的问题。相比于以往复制粘贴的编码模式,sMDA会自动生成系统的关键代码。

关键词: 模型驱动, Struts2, 平台无关模型, 平台相关模型, SSH

Abstract: In recent years, as the development of software developing technologies, the software development steps are more standardized than ever before, which makes the management and maintenance more convenient, but it also brings an unavoidable problem: developers have to write more repeated code, one good example of which is the software development based SSH. To solve this problem, this article proposes a new code generating method called sMDA base on MDA(Model Driven Architecture) and framework of SSH. sMDA solves the problem of writing repeated code which are copied and pasted again and again. sMDA will generate key codes of system automatically, while codes are copied and pasted in the past.

Key words: MDA, Struts2, PIM, PSM, SSH

中图分类号: